<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./vue.js"></script>
</head>
<body>
  <div id="box">
    {{ msg  }}
    <!-- {{ msg2 }} -->
    <!-- {{ alert(1) }} -->
    {{ parseInt(num1) }}

    {{ isTrue?"好看":"真丑" }}
  </div>
  
  <script>
    let msg2 = "你好啊";
    let vm = new Vue({
      el:"#box",//指定vue的控制范围
      data:{
        msg:"hello vue",
        num1:"12.632382378",
        isTrue:false
      }
    });
  </script>
</body>
</html>